/*
 *
 *  * | Licensed 未经许可不能去掉「OPENIITA」相关版权
 *  * +----------------------------------------------------------------------
 *  * | Author: xw2sy@163.com
 *  * +----------------------------------------------------------------------
 *
 *  Copyright [2024] [OPENIITA]
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * /
 */
package cc.iotkit.model.biz;

import cc.iotkit.model.Id;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BizWorkorderReplace implements Id<Long> {

    private Long id;

    private Long pid;

    private Long tenantId;

    private String tenantName;

    private String remark;

    /**
     * 所属平台用户ID
     */
    private Long uid;

    private Long createDept;

    private Long createAt;

    private Long createBy;

    private Long updateAt;

    private Long updateBy;

    private String createUser;

    private String updateUser;

    private String creator;

    private String creatorPhone;


    private String docNumber;

    private String robotSn;

    private String typeName;

    private String statusName;

    private String personName;

    private String result;

    private String productName;

    private String productKey;

    private String deviceName;

    private String modelName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replaceDate;

    private String reason;

    //设备信息配件明细id
    private Long devicePartsId;

    private String partCode;

    private String partName;

    private Integer maintenancePeriod;

    private Long unitId;

    private String unitName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}